package com.example.stock.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;


@Entity
public class GoodsData implements Serializable {
    public static final long serialVersionUID = -15515456L;

    @Id(autoincrement = true)
    private Long id;

    private String invcode; // 存货编码
    
    private String djh; // 到货单号

    private String invname; // 存货名称

    private String invspec; // 规格型号
    private String jldw;
    private String hgsl; // 合格数量

    private String pkInvbasdoc; // 存货主键

    private String pcCode; // 批次编码

    private String rkrq; // 入库日期

    private String sl; // 入库数量

    private int type; // 0 默认； 1 已更新；

    private String gysName;// 供应商名称


    @Generated(hash = 1672351447)
    public GoodsData(Long id, String invcode, String djh, String invname,
            String invspec, String jldw, String hgsl, String pkInvbasdoc,
            String pcCode, String rkrq, String sl, int type, String gysName) {
        this.id = id;
        this.invcode = invcode;
        this.djh = djh;
        this.invname = invname;
        this.invspec = invspec;
        this.jldw = jldw;
        this.hgsl = hgsl;
        this.pkInvbasdoc = pkInvbasdoc;
        this.pcCode = pcCode;
        this.rkrq = rkrq;
        this.sl = sl;
        this.type = type;
        this.gysName = gysName;
    }

    @Generated(hash = 1868386571)
    public GoodsData() {
    }

    public String getDjh() {
        return djh;
    }

    public void setDjh(String djh) {
        this.djh = djh;
    }

    public void setInvcode(String invcode) {
        this.invcode = invcode;
    }

    public String getInvcode() {
        return invcode;
    }

    public void setInvname(String invname) {
        this.invname = invname;
    }

    public String getInvname() {
        return invname;
    }

    public void setInvspec(String invspec) {
        this.invspec = invspec;
    }

    public String getInvspec() {
        return invspec;
    }

    public void setHgsl(String hgsl) {
        this.hgsl = hgsl;
    }

    public String getHgsl() {
        return hgsl;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "GoodsData{" +
                "id=" + id +
                ", invcode='" + invcode + '\'' +
                ", djh='" + djh + '\'' +
                ", invname='" + invname + '\'' +
                ", invspec='" + invspec + '\'' +
                ", hgsl='" + hgsl + '\'' +
                ", pkInvbasdoc='" + pkInvbasdoc + '\'' +
                ", type=" + type +
                '}';
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPkInvbasdoc() {
        return pkInvbasdoc;
    }

    public void setPkInvbasdoc(String pkInvbasdoc) {
        this.pkInvbasdoc = pkInvbasdoc;
    }

    public String getPcCode() {
        return pcCode;
    }

    public void setPcCode(String pcCode) {
        this.pcCode = pcCode;
    }

    public String getRkrq() {
        return rkrq;
    }

    public void setRkrq(String rkrq) {
        this.rkrq = rkrq;
    }

    public String getSl() {
        return sl;
    }

    public void setSl(String sl) {
        this.sl = sl;
    }

    public String getGysName() {
        return gysName;
    }

    public void setGysName(String gysName) {
        this.gysName = gysName;
    }

    public String getJldw() {
        return jldw;
    }

    public void setJldw(String jldw) {
        this.jldw = jldw;
    }

}
